<!DOCTYPE html>
<html>
<head>
  <title>EdmAdmin</title>
  <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
  <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
  <%= csrf_meta_tags %>
</head>
<body>
<div class="container">
  <div class="page-header" id="banner">
    <div class="row">
      <div class="col-lg-12">
        <h1>EDM</h1>
        <p class="lead">
          Make it easy to deliver and get feedback of sending massive emails
        </p>
      </div>
    </div>
  </div>
  <div class="bs-docs-section clearfix">
    <div class="row">
      <div class="col-lg-12">
        <div class="page-header">
          <h1>Sign in</h1>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-lg-12">
        <div class="well bs-component">
          <%= div_if alert, class: 'alert alert-dismissable alert-danger' do %>
            <button type="button" class="close" data-dismiss="alert">×</button>
            <%= alert %>
          <% end %>
          <%= form_for(resource, as: resource_name, url: session_path(resource_name), html: {class: 'form-horizontal'}) do |f| %>
              <fieldset>
                <div class="form-group">
                  <%= f.label :email, class: 'col-lg-2 control-label' %>
                  <div class="col-lg-10">
                    <%= f.email_field :email, class: 'form-control' %>
                  </div>
                </div>
                <div class="form-group">
                  <%= f.label :password, class: 'col-lg-2 control-label' %>
                  <div class="col-lg-10">
                    <%= f.password_field :password, class: 'form-control' %>
                    <div class="checkbox">
                      <label>
                        <%= f.check_box :remember_me %>
                        Remember me
                      </label>
                    </div>
                  </div>
                </div>
                <div class="form-group">
                  <div class="col-lg-10 col-lg-offset-2">
                    <%= f.submit 'Sign in', class: 'btn btn-primary' %>
                  </div>
                </div>
              </fieldset>
          <% end %>
        </div>
      </div>
    </div>
  </div>
</div>
</body>
</html>